<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/zrender@5.4.0/dist/zrender.min.js"></script>
</head>
<body>
    <div id="zrender" style="width: 800px;height: 800px"></div>
    <script>
        console.log('zrender提交');
        
        const zr = zrender.init(document.getElementById('zrender'))
        const rect = new zrender.Rect({
            shape: {
                x:0,
                y: 0,
                width: 50,
                height: 50
            },
            style: {
                fill: 'red',
                lineWidth: 0
            }
        })
        zr.add(rect)
    </script>
</body>
</html>